.dashboard-wrapper {
  width: 100vw;
  height: 100vh;
  background-color: #000;
  .header {
    width: 100vw;
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    .left {
      width: 33.33%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .circle-num {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        cursor: pointer;
        font-weight: bolder;
        border: 2px solid #e7a042;
        color: #fff;
        &.active {
          border: 2px solid #e7a042;
          background-color: #e7a042;
          color: #fff;
        }
      }
      .main-system {
        font-size: 20px;
        cursor: pointer;
      }
    }
    .title {
      width: 33.33%;
      font-size: 20px;
      text-align: center;
    }
    .right {
      width: 33.33%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }
  //9个屏幕
  .ecg-show-list {
    padding-left: 5px;
    width: 100vw;
    height: calc(100vh - 40px);
    display: flex; /* 启用 Flex 布局 */
    flex-wrap: wrap; /* 允许换行 */
    flex-basis: auto;
    box-sizing: border-box; /* 边距不影响宽高计算 */
    overflow: hidden;
    gap: 5px; /* 子元素间距 */
  }
  .ecg-show-item {
    flex: 0 0 calc(33.33% - 5px); /* 每行两个元素，减去间距 */
    height: calc(33.33% - 5px);
    color: #fff;
    cursor: pointer;
  }
  //2个屏幕
  @keyframes heartbeat1 {
    0% {
      transform: scale(1);
    }

    25% {
      transform: scale(1.1);
    }

    50% {
      transform: scale(1);
    }

    75% {
      transform: scale(1.1);
    }

    100% {
      transform: scale(1);
    }
  }
  @keyframes HighWarning1 {
    0% {
      background-color: #000000;
      color: #8bff00;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #8bff00;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #8bff00;
    }
  }
  @keyframes HighWarning1-1 {
    0% {
      background-color: #000000;
      color: #8bff00;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #8bff00;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #8bff00;
    }
  }
  @keyframes HighWarning2 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #f4cd00;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #f4cd00;
    }
  }
  @keyframes HighWarning2-1 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #f4cd00;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #f4cd00;
    }
  }
  @keyframes HighWarning3 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #ff960a;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #ff960a;
    }
  }
  @keyframes HighWarning3-1 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #ff960a;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #ff960a;
    }
  }
  @keyframes HighWarning4 {
    0% {
      background-color: #000000;
      color: #00fffd;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #00fffd;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #00fffd;
    }
  }
  @keyframes HighWarning4-1 {
    0% {
      background-color: #000000;
      color: #00fffd;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #00fffd;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #00fffd;
    }
  }
  @keyframes HighWarning5 {
    0% {
      background-color: #000000;
      color: #31a0ff;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #31a0ff;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #31a0ff;
    }
  }
  @keyframes HighWarning5-1 {
    0% {
      background-color: #000000;
      color: #31a0ff;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #31a0ff;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #31a0ff;
    }
  }
  .double-screen-wrapper {
    width: 100vw;
    height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    .double-screen-item {
      width: calc(50% - 3px);
      height: 100%;
      border: 1px solid #797979;
      position: relative;
      .icon2 {
        cursor: pointer;
      }
      .user-info-wrapper {
        width: 100%;
        height: 40px;
        padding: 0 10px;
        color: #afafaf;
        border-bottom: 1px solid #8b8d8a;
        display: flex;
        align-items: center;
        .patient-info {
          font-size: 16px;
          color: #fff;
          display: flex;
          align-items: center;
          img {
            width: 20px;
            height: 20px;
            margin-left: -6px;
          }
        }
        .option-wrapper {
          height: 34px;
          z-index: 4;
          display: flex;
          align-items: center;
          padding-right: 10px;
          padding-bottom: 4px;
          img {
            width: 24px;
            height: 24px;
          }
        }
      }
      .alarm-show-wrapper {
        min-width: 250px;
        position: absolute;
        right: 10px;
        top: 5px;
        z-index: 4;
        font-size: 16px;
        height: 28px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        cursor: pointer;
        p {
          margin-bottom: 0;
        }
        &.medium {
          background-color: #ffff4b;
          color: #000000;
        }
        &.high {
          background-color: red;
          color: #fff;
        }
        .alarm-msg-icon {
          position: absolute;
          bottom: -2px;
          right: 2px;
        }
      }
    }
    .screen-item {
      width: 100%;
      height: calc(100% - 40px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .closeNoticeImg {
        width: 25px;
        height: 25px;
        margin-left: -2px;
      }
      .ecg-describe-item {
        width: 100%;
        height: 50%;
        position: relative;
        padding: 2px 5% 2px 2px;
        border-bottom: 1px solid #797979;
        display: flex;
        align-items: center;
        justify-content: space-between;

        &:last-child {
          border-bottom: 0px solid #797979;
        }
      }
      .ecg-desc-wrapper {
        width: 200px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        border-left: 1px solid #797979;
        color: #fff;

        .public-wrapper1 {
          width: 25%;
          height: 100%;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: space-between;
        }

        .title1 {
          font-size: 16px;
          font-weight: bold;
        }

        .title2,
        .title4 {
          font-size: 12px;
        }

        .title3 {
          width: 70%;
          transition: all 0.1s ease-in-out;
          /* 短暂过渡减少闪烁 */
          font-size: 65px;
          font-weight: bold;
          line-height: 65px;
          padding-bottom: 5px;
          text-align: center;
        }
      }
    }
    .device-offline {
      width: 40%;
      height: 50px;
      background-color: #ff960a;
      font-size: 18px;
      color: #000000;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: auto;
      animation: heartbeat1 4s infinite;
    }
    .chart-collection-item {
      width: 100%;
      height: 20%;
      border-bottom: 1px solid #797979;
      display: flex;
      justify-content: space-between;
      align-items: center;
      &.ecg-chart {
        height: 60%;
        .ecg-charts-item {
          display: flex;
          flex-direction: column;
          justify-content: center;
        }
      }
      &:last-child {
        border-bottom: none;
      }
      .ecg-describe-item {
        height: 100%;
      }

      &:nth-child(1) {
        .ecg-describe-item {
          &:nth-child(1) {
            color: #8bff00;
            .title3 {
              border-radius: 4px;
              &.notice {
                animation: HighWarning1 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
              &.notice1 {
                animation: HighWarning1-1 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
            }
          }
          &:nth-child(2) {
            color: #f4cd00;
            .title3 {
              border-radius: 4px;
              &.notice {
                animation: HighWarning2 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
              &.notice1 {
                animation: HighWarning2-1 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
            }
          }
          &:nth-child(3) {
            color: #ff960a;
            .title3 {
              border-radius: 4px;
              &.notice {
                animation: HighWarning3 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
              &.notice1 {
                animation: HighWarning3-1 2s infinite;
                animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
              }
            }
          }
        }
      }
      &:nth-child(2) {
        .ecg-describe-item {
          color: #00fffd;
          .title3 {
            border-radius: 4px;
            &.notice {
              animation: HighWarning4 2s infinite;
              animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
            }
            &.notice1 {
              animation: HighWarning4-1 2s infinite;
              animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
            }
          }
        }
      }
      &:nth-child(3) {
        .ecg-describe-item {
          color: #31a0ff;
          .title3 {
            border-radius: 4px;
            &.notice {
              animation: HighWarning5 2s infinite;
              animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
            }
            &.notice1 {
              animation: HighWarning5-1 2s infinite;
              animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
            }
          }
        }
      }
    }
    .chart-inner-wrapper {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: calc(100% - 150px);
      .ecg-charts-item {
        height: 100%;
      }
      .no-data {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #797979;
      }
    }
  }
}
